<style type="text/css">
    .testimonial_container
    {
        padding: 10px;
        
    }
    .title_li
    {
        font: 14px;
        font-weight: bold;
        color: #5F93B4;
        padding:10px 10px 10px 0px;
    }
    .description_li
    {
        padding:0px 10px 10px 0px;
    }
    .links
    {
        font-weight: bold;
        
    }
</style>


<div class="testimonial_container">
   
    <ul>
            <li class="title_li">
                <?php echo $this->testimonial->getTitle() ?>
            </li>  
            <li class="description_li">
                <?php echo $this->testimonial->description; ?>
                
            </li>
     </ul>
   
    <?php
        $this->view->viewer = $viewer = Engine_Api::_()->user()->getViewer();
        $viewer_id = $viewer->getIdentity();
        /*echo $viewer;
        echo $viewer_id;
        exit;*/
    ?>  
    
 


<?php
    if(!$this->testimonial->approved )
    { 
          ?>
           <div class="links">
        <?php
                if($viewer_id == $this->testimonial->resource_id ) 
                { 
                    //echo $resource_id;  exit;
                ?> 
                    <a class='smoothbox' href='<?php echo $this->url(array('action' => 'confirm','id' => $this->testimonial->testimonial_id), 'testimonial_general', true);?>'>
                                <?php echo $this->translate("Accept") ?>
                    </a>

                    <a class='smoothbox' href='<?php echo $this->url(array('action' => 'remove','id' => $this->testimonial->testimonial_id), 'testimonial_general', true);?>'>
                                <?php echo $this->translate("Reject") ?>
                    </a>

        <?php }else{ ?> 
    <?php }?>

    </div>

</div>
        
<?php } else
    { ?>
        
 <?php   }?>
        









<?php /*echo $this->htmlLink($this->url(array('controller' => 'index', 'action' => 'confirm','id' => $this->testimonial->testimonial_id), 'testimonial_general', true),
                  'Accept'
                 )*/
            ?>
  
    
    
    <?php /*echo $this->htmlLink($this->url(array('controller' => 'index', 'action' => 'remove','id' => $this->testimonial->testimonial_id), 'testimonial_general', true),
                  'Reject'
                 )*/
            ?>